package org.hhh.org.service.impl;

import org.hhh.basic.service.impl.BaseServiceImpl;
import org.hhh.org.domain.Systemdictionarytype;
import org.hhh.org.mapper.SystemdictionarytypeMapper;
import org.hhh.org.service.ISystemdictionarytypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class SystemdictionarytypeServiceImpl extends BaseServiceImpl<Systemdictionarytype> implements ISystemdictionarytypeService {

    @Autowired
    private SystemdictionarytypeMapper systemdictionarytypeMapper;

    @Override
    @Transactional
    public void del(Long typeId) {
        //删除明细表
        systemdictionarytypeMapper.delTypeId(typeId);
        //删除产品表
        systemdictionarytypeMapper.delete(typeId);
    }
}
